import request from '@/utils/request'
import {projectApiUrls, projectApiUrl} from '../config'
/**
 * 项目停缓建列表
 * @param parameter
 */
export function getStopConList(parameter){
  return request({
    url: projectApiUrls+'/project/suspended/management/query-list/list',
    method: 'post',
    data: parameter
  })
}

/**
 * 查询停工|停缓建列表
 * @param parameter
 */
export function queryWorkStoppageApply(parameter){
  return request({
    url: projectApiUrls+'/workStoppageApply/queryWorkStoppageApply',
    method: 'post',
    data: parameter
  })
}


/**
 * 停工|停缓建统计
 * @param parameter
 */
export function queryWorkStoppageStatistics(parameter){
  return request({
    url: projectApiUrls+'/workStoppageApply/queryWorkStoppageStatistics',
    method: 'post',
    data: parameter
  })
}


/**
 * 项目停缓建统计
 * @param
 */
export function getStopConTotal(data){
  return request({
    url: projectApiUrls+'/project/suspended/management/query-list-total/list',
    method: 'post',
    data
  })
}


/**
 * 新增项目停缓建
 * @param data
 */
export function addStopCon(data){
  return request({
    url: projectApiUrls+'/project/suspended/management/add-shutdownInfo',
    method: 'post',
    data: data
  })
}


/**
 * 编辑项目停缓建评分
 * @param data
 */
export function editStopCon(data){
  return request({
    url: projectApiUrls+'/project/suspended/management/update-shutdownInfo',
    method: 'post',
    data: data
  })
}


/**
 * 停工|停缓建新增
 * @param data
 */
export function workStoppageApplySave(data){
  return request({
    url: projectApiUrls+'/workStoppageApply/save',
    method: 'post',
    data: data
  })
}


/**
 * 停工|停缓建修改
 * @param data
 */
export function workStoppageApplyEdit(data){
  return request({
    url: projectApiUrls+'/workStoppageApply/edit',
    method: 'post',
    data: data
  })
}

/**
 * 项目复工申请
 * @param data
 */
export function returnApplication(data){
  return request({
    url: projectApiUrls+'/project/suspended/management/reload-startWorkInfo',
    method: 'post',
    data: data
  })
}

/**
 * 获取工程码表共通方法
 * @param
 */
export function getProjectCommon(data){
  return request({
    url: projectApiUrl+'/plan-label',
    method: 'get',
    params:data
  })
}
/**
 * 停工|停缓建详情
 * @param
 */
export function workStoppageApplyDetail(id){
  return request({
    url: projectApiUrl+'/workStoppageApply/detail/'+id,
    method: 'get',
  })
}

/**
 * 停工|停缓建详情
 * @param
 */
export function resumeWorkApply(data){
  return request({
    url: projectApiUrl+'/workStoppageApply/resumeWorkApply',
    method: 'post',
    data,
  })
}



